#include "realvaluechecktest.h"

bool RealValueCheckTest::run() {
    short count=0;

    if (!RealValueCheckTest::absTest())
        std::cout << "ERROR " << ++count << " RealValueCheckTest::absTest() faild!" << std::endl;

    return count==0;
}

bool RealValueCheckTest::absTest() {
    double d = -3;
    assert(RealValueCheck::abs(d)==3);
    d = 3;
    assert(RealValueCheck::abs(d)==3);
    d = -9378;
    assert(RealValueCheck::abs(d)==9378);
    return true;
}
